<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page pageEncoding="UTF-8" %>
<!DOCTYPE HTML>
<html>
<head>
    <title>Order</title>
    <meta charset="UTF-8"/>
    <script type="text/javascript" src="jquery-1.6.min.js"></script>
    <LINK REL=StyleSheet HREF="cheque-common.css" TYPE="text/css" MEDIA="screen, print">
    <LINK REL=StyleSheet HREF="cheque-print.css" TYPE="text/css" MEDIA="print">
</head>
<body>
<div class="no-print">
    <strong>Номер заказа:</strong> ${order.id}</br>
    <strong>Время заказа:</strong> ${order.time}</br>
    <strong>Готовность заказа:</strong> ${order.confirmed}</br>
</div>
<table class="order-table">
    <thead>
    <tr>
        <th>Блюдо</th>
        <th>Количество</th>
        <th>Стоимость</th>
    </tr>
    </thead>
    <tbody>
    <c:forEach var="orderedDish" items="${order.orderedDishes}">
        <tr>
            <td>${orderedDish.dish.name}</td>
            <td>${orderedDish.amount}</td>
            <td>${orderedDish.dish.price * orderedDish.amount}</td>
        </tr>
    </c:forEach>
        <tr>
        <td colspan="3" id="summary">Итого: ${requestScope.totalPrice}</td>
        </tr>
    </tbody>
</table>
</body>
</html>
